import java.io.*;

public class Student
{
	private String student_ID;
	private String student_Name;
	private String student_Gender;
	private Integer student_Birth;
	private Double student_Midterm;
	private Double student_Final;
	private Double student_Total;
	private Double student_Average;

	public Student(String name, String id, String gender, int birth, double mid, double fin)
	{
		student_Name = name;
		student_ID = id;
		student_Gender = gender;
		student_Birth = birth;
		student_Midterm = mid;
		student_Final = fin;
		student_Total = student_Midterm + student_Final;
		student_Average = student_Total/2;
	}

	public String toString()
	{
		return (student_Name + "\t" + student_ID + "\t" + student_Gender + "\t" + student_Birth + "\t" + student_Midterm + "\t" + student_Final);
	}

	public String getID()
	{
		return student_ID;
	}

	public String getName()
	{
		return student_Name;
	}

	public String getGender()
	{
		return student_Gender;
	}

	public Integer getBirth()
	{
		return student_Birth;
	}

	public Double getMidterm()
	{
		return student_Midterm;
	}

	public Double getFinal()
	{
		return student_Final;
	}

	public Double getTotal()
	{
		return student_Total;
	}

	public Double getAverage()
	{
		return student_Average;
	}

	public String setID(String newID)
	{
		student_ID = newID;
		return student_ID;
	}

	public String setName(String newName)
	{
		student_Name = newName;
		return student_Name;
	}

	public String setGender(String newGender)
	{
		student_Gender = newGender;
		return student_Gender;
	}

	public Integer setBirth(int newBirth)
	{
		student_Birth = newBirth;
		return student_Birth;
	}

	public Double setMidterm(double newMidterm)
	{
		student_Midterm = newMidterm;
		return student_Midterm;
	}

	public Double setFinal(double newFinal)
	{
		student_Final  = newFinal;
		return student_Final;
	}
}
